﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DOTNETGROUP.Entities;
using DOTNETGROUP.Data;

public partial class Controls_ControlQuangCaoDichVuLeft : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Bind_Data();
        }
    }
    public void Bind_Data()
    {
        int TotalRows = 0;
        string whereClause = "IdLoaiQuangCao='1'";
        TList<QuangCao> TList_QuangCao = DataRepository.QuangCaoProvider.GetPaged(whereClause, "", 0, 3, out TotalRows);
        dlQuangCao.DataSource = TList_QuangCao;
        dlQuangCao.DataBind();
    }
}
